import request from '@/utils/request'

// 获取一个表单结构
export function Get(parameter) {
  return request({
    url: '/api/flowtask/get',
    method: 'get',
    params: parameter,
    needToken: true,
  })
}
// 待办事项
export function Gettodopagelist(parameter) {
  return request({
    url: '/api/flowtask/gettodopagelist',
    method: 'get',
    params: parameter,
    needToken: true,
  })
}
// 已办事项
export function Getdonepagelist(parameter) {
  return request({
    url: '/api/flowtask/getdonepagelist',
    method: 'get',
    params: parameter,
    needToken: true,
  })
}
// 流程发起保存
export function Command(data) {
  return request({
    url: '/api/flowtask/command',
    method: 'post',
    data: data,
    needToken: true,
  })
}
// 已办事项
export function Getsteps(data) {
  return request({
    url: '/api/flowtask/getsteps',
    method: 'post',
    data: data,
    needToken: true,
  })
}
// 获取一组流程列表
export function Gettasklist(parameter) {
  return request({
    url: '/api/flowtask/gettasklist',
    method: 'get',
    params: parameter,
    needToken: true,
  })
}

export function Deletetask(parameter) {
  return request({
    url: '/api/flowtask/deletetask',
    method: 'delete',
    params: parameter,
    needToken: true,
  })
}
